<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="uiTags" prefix="ui"%>

<script type="text/javascript">
	function userEdit(){
		submitForm("formtable", "user/userEdit", "closeCurrentTab()");
	}
</script>
<ui:body>
	<div class="easyui-layout" style="width: 100%;height: 100%;" fit="true">
		<div data-options="region:'north',border:false" style="height: 140px">
			<ui:formtable id="formtable">
				<ui:textinput id="user.userid" defaultvalue="${user.userid}" hidden="true"/>
				<ui:textinput id="user.login_id" defaultvalue="${user.login_id}" label="登录名" dataOptions="required:true"/>
				<ui:textinput id="user.password" label="密码"  password="true" dataOptions="required:true"/>
				<ui:textinput id="user.name" label="姓名" defaultvalue="${user.name}" dataOptions="required:true"/>
				<ui:nextline/>
				<ui:dropdown required="true" id="user.roleid" dsCode="dsRole" defaultselect="${user.roleid}" label="角色"></ui:dropdown>				
			</ui:formtable>
		</div>

		<div data-options="region:'south',border:true"
			style="text-align: right;overflow: hidden;">
			<ui:button onclick="userEdit()" icon="icon-ok" value="修改"  />
			<ui:button onclick="closeCurrentTab()" icon="icon-ok" value="关闭" />
		</div>
	</div>
</ui:body>
